import React from 'react';
import { Button, Carousel } from 'antd-mobile';
import './timebase.css'
class TimeBase extends React.Component {    
    constructor(props) {
        super(props);       
        this.state = {
            upvoteImgStyle: 'upvote-img-unupvoted',
            upvoteTextStyle: 'upvote-text-unupvoted',
            upvoted: false
        };   
    }
  
    render() {
        return (
            <div className="time-base-wrap">
                <div className="time-base-time">
                    <span className="time-base-time-text">{ this.props.time }</span>
                </div>
                <div className="time-base-content">
                    <div className="time-base-content-text">{ this.props.text }</div>
                </div>
                <div style={{ clear: 'both' }}></div>
                <div className="time-base-icon"></div>
            </div>
        )
    }
}

//导出组件
export default TimeBase;
